package cn.unknowpupil.init.common.constant;

/**
 * Created at 2020/12/2 by w10g <br>
 * Initialize CacheKeyConstants ... <br>
 *
 * @author unknowpupil
 * @since 0.0.1
 */
public class CacheKeyConstants {

    /**
     * 项目所有缓存 前缀
     */
    public static final String PROFILE = "initialize:";
    //========================== springboot cache
    /**
     * 数据
     */
    public static final String DATE_USER = PROFILE + ":data::user:";
    /**
     * 菜单
     */
    public static final String MENU_USER = PROFILE + ":menu::user:";
    /**
     * 角色授权
     */
    public static final String ROLE_AUTH = PROFILE + ":role::auth:";
    /**
     * 角色信息
     */
    public static final String ROLE_ID = PROFILE + ":role::id:";

    //============================== redis========================

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = PROFILE + "repeat_submit:";
    /**
     * 角色缓存
     */
    public static final String ROLE_KEY = PROFILE + "role_list:";
    /**
     * 权限缓存
     */
    public static final String PERMISSION_LIST = PROFILE + "permission_list:";
    /**
     * 字典缓存
     */
    public static final String SYS_DICT_KEY = PROFILE + "sys_dict:";
}
